﻿using System.Collections.Generic;

namespace Subfaculty.Common.Entities
{
	public class StudyPlan : BaseEntity
	{
		private StudyArea _studyArea;
		public StudyPlan()
		{
			StudyPlanSemesters = new List<StudyPlanSemester>();
		}

		public virtual StudyArea StudyArea
		{
			get { return _studyArea; }  
			set 
			{
				_studyArea = value;
				value.StudyPlans.Add(this);
			} 
		}
		public virtual ICollection<StudyPlanSemester> StudyPlanSemesters { get; set; }



	}
}
